package com.alpaak.common.enumtype;

/**
 * 
 * 
 * Created by xukq on 17/1/16.
 */
public enum RoleEnum {
	CUESTOMER("3","客户"),
    HEALTH_CARE("2","健康专员"),
    PALAT_MANAGE("1","平台管理员"),
    SYS_MANAGE("0","系统管理员"),
    ;

    private String statue;

    private String description;

    private RoleEnum(String statue, String description){
        this.statue = statue;
        this.description = description;
    }

    private RoleEnum(String statue){
        this.statue = statue;
    }

    public static RoleEnum getHttpStatusEnum(String statue) {
        for(RoleEnum x: RoleEnum.values()) {
            if(x.getStatue().equals(statue)) {
                return x;
            }
        }
        return null;
    }

    public String getStatue(){
        return this.statue;
    }

    public String getDescription(){
        return this.description;
    }
}
